package com.xunk.auth.api;

import com.xunk.auth.api.factory.RemoteAuthFallbackFactory;
import com.xunk.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 文件服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteAuthService", value = ServiceNameConstants.AUTH_SERVICE, fallbackFactory = RemoteAuthFallbackFactory.class)
public interface RemoteAuthService {

    /**
     * 校验token
     *
     * @param token
     */
    @GetMapping("/oauth/check_token")
    String checkToken(@RequestParam("token") String token);
}

